{"project":"custom_switch_statement","branch":"main","commit":"0c51def489dbfc205766547065ce7308f9ee06a9","component":{"apis":{"weather":{"url":{"type":"value","value":"https://toddle.dev/_api/weather"},"auth":null,"body":{"type":"value","value":null},"name":"weather","path":[],"type":"REST","proxy":true,"method":"GET","headers":{"type":"record","entries":[]},"autoFetch":{"type":"value","value":true},"dependsOn":[]}},"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["qUZX5B_obx9JdrREoZr8I"],"classes":{"bTqdax":{"formula":{"type":"value","value":true}}},"customProperties":{}},"--V-_0Cs39wPMHNWzGvdt":{"id":"xyNmnr0yAYOun9eb_udvp","type":"text","value":{"name":"switchStatement","type":"function","arguments":[{"name":"switchInput","formula":{"path":["Variables","month"],"type":"path"}},{"name":"cases","type":{"type":"List"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"1"}},{"Name":0,"name":"result","formula":{"type":"value","value":"January"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"2"}},{"Name":0,"name":"result","formula":{"type":"value","value":"February"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"3"}},{"Name":0,"name":"result","formula":{"type":"value","value":"March"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"4"}},{"Name":0,"name":"result","formula":{"type":"value","value":"April"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"5"}},{"Name":0,"name":"result","formula":{"type":"value","value":"May"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"6"}},{"Name":0,"name":"result","formula":{"type":"value","value":"June"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"7"}},{"Name":0,"name":"result","formula":{"type":"value","value":"July"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"8"}},{"Name":0,"name":"result","formula":{"type":"value","value":"August"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"9"}},{"Name":0,"name":"result","formula":{"type":"value","value":"September"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"10"}},{"Name":0,"name":"result","formula":{"type":"value","value":"October"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"11"}},{"Name":0,"name":"result","formula":{"type":"value","value":"November"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"12"}},{"Name":0,"name":"result","formula":{"type":"value","value":"December"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":""}},{"Name":0,"name":"result","formula":{"type":"value","value":"Enter an integer"}}]}}]}},{"name":"defaultValue","formula":{"type":"value","value":"Month not found"}}]}},"-f04NzVeBgRgSGzeZwXkd":{"tag":"span","type":"element","children":["Oq4Z5Rsxndev9afYHMmsl"],"classes":{"HVAcz":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-z4qT8gYTtxMx5LiUDw03":{"type":"text","value":{"type":"value","value":"Enter an animal to check its type (elephant, tiger, bear, and pig)"}},"1sfhkWSleY5piyHFmzV5X":{"tag":"span","type":"element","children":["gv58ubhBpIWoQxxy9RXwG"],"classes":{"cBiGKA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2YB1BPkzGHlWDsraEOC_O":{"tag":"td","type":"element","children":["k14i7v51cs9IQChiSna08"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4oH4nFa9br2P_wUUO-uxC":{"tag":"div","type":"element","children":["MdUc7eiK5zDzLcUuVxtOv","EPDM_RG5gMYLjGAhrAg5w"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"616n7TVOO6f-PV1o3Ttcf":{"tag":"section","type":"element","children":["rPritJtWLr5om5Mf7ZQl4","dPIDQY2NRCodcOF5VifV1"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6JzXU7qD2EnoxfKsd3CtP":{"tag":"h2","type":"element","children":["Ppb2ZQC077pjPIAO71GPL"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6vzWrfo9-_9YFupekc0yz":{"tag":"div","type":"element","children":["fllUc8Uq0W9n3tTZNnjar"],"classes":{"exolyg":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8JMmh1JG6yvg9WglgEwJc":{"tag":"div","type":"element","value":{"type":"value","value":"Describe the use case of your toddle package here. Feel free to add a video explaining what your package does and how to use it. Alternatively, insert a screenshot showing the toddle package in use.\n\n"},"children":["gKOdXbW-on_939JSdA1t-"],"classes":{"CsusC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"A1QNARQyLmHRc94PnElmy":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"text"},"value":{"path":["Variables","animal"],"type":"path"},"autofocus":{"type":"value","value":false},"placeholder":{"type":"value","value":"month"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"animal"}],"trigger":"input"}},"classes":{"gCrgZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AAos7e-UOjEj1mn2hhjT5":{"tag":"div","type":"element","children":["u0P1mFr478WFepV8XEnAK","vOHOzUCK4-00R1sigQxCq"],"classes":{"frcwnO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AJFX78Oz7f85ndH2UzMrR":{"type":"text","value":{"type":"value","value":"Arguments"}},"BGVRiiTF5LvIKHxj8Uvj0":{"tag":"div","type":"element","children":["EIeOF-1DM0SFmFs_RX81h","kwEUxxe4n5oGuWfoRrxrH"],"classes":{"qvosv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BHM1o9B2lswQOz9dXRwoQ":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/custom_switch_statement:switchStructure/720"}},"classes":{"chAEml":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BfDxpiNh7cK1VLjoWkclZ":{"tag":"tr","type":"element","children":["qmPcZxSZ4RJRuMuAIIgJl","QcGHWeE0cYAc7atOgEXtQ"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Bk1CHxyYtylnSgee8SRps":{"tag":"div","type":"element","children":["unB9UK8hQ3mwyUHDWjreA"],"customProperties":{}},"C9JRkHaBDGDGFe0RDmyqw":{"tag":"div","type":"element","children":["fHWS6AEtUumPNyubsJwys","Bk1CHxyYtylnSgee8SRps","PUWpS7f5hIZSe_5j_a64L","BGVRiiTF5LvIKHxj8Uvj0"],"classes":{"fipafx":{"formula":{"type":"value","value":true}}},"customProperties":{}},"CtpvyA26Md00Fcx5JLwJN":{"tag":"h3","type":"element","children":["Oy6zfwwtzH1Kx7osl-dUd"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"D2aIDiP5YhC6DjhjrFLXh":{"type":"text","value":{"type":"value","value":"Switch Statement (Custom Formula)"}},"DDy_L9HAVdgsT-7T4qkx0":{"tag":"p","type":"element","children":["iSCTwq_3gRK_--mbHiz6C"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EIeOF-1DM0SFmFs_RX81h":{"tag":"span","type":"element","children":["_1wVSSrx4O8LkCNfjGiqY"],"classes":{"eCWzMb":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EPDM_RG5gMYLjGAhrAg5w":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/custom_switch_statement:codevnocode/1280"}},"classes":{"chAEml":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Fsp8dlaGlnN2FMJPj6i_I":{"type":"text","value":{"type":"value","value":"Breakdown"}},"JlcGxUo5LesVsW-BALIBP":{"tag":"div","type":"element","children":["C9JRkHaBDGDGFe0RDmyqw"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MdUc7eiK5zDzLcUuVxtOv":{"tag":"div","type":"element","children":["XojMMa2bdgaBV8hqhEj6N","tYkY8mQq7i2CQ5mYiNLip","jtqZYkym7jqjp3M5UelbZ"],"classes":{"fipafx":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ocz0955gPBhgnA5gXkqXn":{"tag":"h1","type":"element","value":{"type":"value","value":"Switch Statement (Custom Formula)"},"children":["D2aIDiP5YhC6DjhjrFLXh"],"classes":{"bRkPdE":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Oq4Z5Rsxndev9afYHMmsl":{"id":"E2VfCBAKxraLnBg3Jca3-","type":"text","value":{"type":"value","value":"Month: "}},"Oy6zfwwtzH1Kx7osl-dUd":{"type":"text","value":{"type":"value","value":"Each object in cases argument array must be in {case, result} format. (with exact key names \"case\" and \"result\" )"}},"PUWpS7f5hIZSe_5j_a64L":{"tag":"div","type":"element","children":["-f04NzVeBgRgSGzeZwXkd","jr2PO6IcxiO78uiHP1sYW"],"classes":{"qvosv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ppb2ZQC077pjPIAO71GPL":{"type":"text","value":{"type":"value","value":"Formulas"}},"QcGHWeE0cYAc7atOgEXtQ":{"tag":"td","type":"element","children":["u8NApFn1J1V0yfOUdO-Cf"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"R4weYJ9mGHC1guX-Amuw_":{"tag":"section","type":"element","children":["ZSIyytzum38YIyxXHXJ6d","JlcGxUo5LesVsW-BALIBP"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SjghcoPIZoOlGIzjhgr8N":{"type":"text","value":{"type":"value","value":"cases"}},"T3xNZeaEOute4FnnW_qjr":{"id":"E2VfCBAKxraLnBg3Jca3-","type":"text","value":{"type":"value","value":"Type:"}},"Vqxf_8CW-icGEeuw3haqS":{"type":"text","value":{"type":"value","value":"⚠️ Important"}},"W2clF93PjQZjr26efW6UQ":{"type":"text","value":{"type":"value","value":"switchStatement"}},"WLGkRFnxQip7JO_31ps6Z":{"tag":"td","type":"element","children":["idDHMH1uNGuyiLY3EVvyZ"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XojMMa2bdgaBV8hqhEj6N":{"tag":"h3","type":"element","children":["-z4qT8gYTtxMx5LiUDw03"],"classes":{"cHsWOS":{"formula":{"type":"value","value":true}}},"customProperties":{}},"YCR5f3XGcoQU6uVb7EjsC":{"tag":"h2","type":"element","value":{"type":"value","value":"Use Case: Single case"},"children":["Fsp8dlaGlnN2FMJPj6i_I"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"YgUcIobBk1HQdVVLrJbUH":{"tag":"td","type":"element","children":["b8lJKAJgdrSnq5wcLCWzN"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZR8jgCgd1o5DbS0EXeuQs":{"id":"O-b4kdTmkQiFzJ6eWmWas","type":"text","value":{"name":"switchStatement","type":"function","arguments":[{"name":"switchInput","formula":{"path":["Variables","month"],"type":"path"}},{"name":"cases","type":{"type":"List"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"3"}},{"Name":0,"formula":{"type":"value","value":"4"}},{"Name":0,"formula":{"type":"value","value":"5"}}]}},{"Name":0,"name":"result","formula":{"type":"value","value":"Spring"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"6"}},{"Name":0,"formula":{"type":"value","value":"7"}},{"Name":0,"formula":{"type":"value","value":"8"}}]}},{"Name":0,"name":"result","formula":{"type":"value","value":"Summer"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"9"}},{"Name":0,"formula":{"type":"value","value":"10"}},{"Name":0,"formula":{"type":"value","value":"11"}}]}},{"Name":0,"name":"result","formula":{"type":"value","value":"Fall"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"12"}},{"Name":0,"formula":{"type":"value","value":"1"}},{"Name":0,"formula":{"type":"value","value":"2"}}]}},{"Name":0,"name":"result","formula":{"type":"value","value":"Winter"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":""}},{"Name":0,"name":"result","formula":{"type":"value","value":"Enter an integer"}}]}}]}},{"name":"defaultValue","formula":{"type":"value","value":"Season not found"}}]}},"ZSH8S6BF792yn-5bGF8r1":{"tag":"section","type":"element","children":["6JzXU7qD2EnoxfKsd3CtP","tujus7mkBz3lFusFnajXj"],"classes":{"fsBqBN":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZSIyytzum38YIyxXHXJ6d":{"tag":"h2","type":"element","value":{"type":"value","value":"Use Case: Single case"},"children":["l7r-zyXjAWAcgZzPY4sOn"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_1wVSSrx4O8LkCNfjGiqY":{"id":"Ehl7AWx3VFaOUhOHvw36D","type":"text","value":{"type":"value","value":"Season: "}},"b8lJKAJgdrSnq5wcLCWzN":{"type":"text","value":{"type":"value","value":"Equivalent to default of the traditional switch statement "}},"bdVX813ourWGALtmvHDX6":{"tag":"p","type":"element","children":["uhkdG54Xmn8ReHAiHtXza","1sfhkWSleY5piyHFmzV5X"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"cw2gxhc6abur4sYtr-Kz3":{"type":"text","value":{"type":"value","value":"Enter an integer to convert it to month & season "}},"d03AeCIYatsx8d_ub5xfq":{"tag":"td","type":"element","children":["jQE0vQwRkcug52_vdhLBl"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dPIDQY2NRCodcOF5VifV1":{"tag":"div","type":"element","value":{"type":"value","value":"Each object in the 'cases' array must be in this format"},"children":["CtpvyA26Md00Fcx5JLwJN","qo1NQlCVxps2hZ6tLZKYS"],"classes":{"cVecci":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fHWS6AEtUumPNyubsJwys":{"tag":"h3","type":"element","children":["cw2gxhc6abur4sYtr-Kz3"],"classes":{"cHsWOS":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fllUc8Uq0W9n3tTZNnjar":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/custom_switch_statement:switchStatement/720"}},"classes":{"dnzkdb":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gKOdXbW-on_939JSdA1t-":{"tag":"div","type":"element","children":["jD-wKYaGpnUIkDvD7xK3c","bdVX813ourWGALtmvHDX6"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gv58ubhBpIWoQxxy9RXwG":{"type":"text","value":{"type":"value","value":"\n"}},"hVG2Qu2I9ihxg1FaW89ym":{"tag":"section","type":"element","children":["Ocz0955gPBhgnA5gXkqXn","8JMmh1JG6yvg9WglgEwJc"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hdSwkUBI-768Pk3DzQQHL":{"tag":"section","type":"element","children":["YCR5f3XGcoQU6uVb7EjsC","4oH4nFa9br2P_wUUO-uxC"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"iSCTwq_3gRK_--mbHiz6C":{"type":"text","value":{"type":"value","value":"A 'node' that acts as a switch / case statement"}},"idDHMH1uNGuyiLY3EVvyZ":{"type":"text","value":{"type":"value","value":"switchInput"}},"jD-wKYaGpnUIkDvD7xK3c":{"tag":"h3","type":"element","children":["lUPGFYkSWa1r-o8-U5uH1"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jQE0vQwRkcug52_vdhLBl":{"type":"text","value":{"type":"value","value":"defaultValue"}},"jr2PO6IcxiO78uiHP1sYW":{"tag":"span","type":"element","children":["--V-_0Cs39wPMHNWzGvdt"],"classes":{"EXSxf":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jtqZYkym7jqjp3M5UelbZ":{"tag":"div","type":"element","children":["v1IIjCOcFOHI7FA5Vqus9","xRIudTCfKkrrO-NIi5S1e"],"classes":{"qvosv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"k14i7v51cs9IQChiSna08":{"type":"text","value":{"type":"value","value":"Equivalent to value that goes in switch(value) of the traditional switch statement "}},"kwEUxxe4n5oGuWfoRrxrH":{"tag":"span","type":"element","children":["ZR8jgCgd1o5DbS0EXeuQs"],"classes":{"EXSxf":{"formula":{"type":"value","value":true}}},"customProperties":{}},"l7r-zyXjAWAcgZzPY4sOn":{"type":"text","value":{"type":"value","value":"Example"}},"lUPGFYkSWa1r-o8-U5uH1":{"type":"text","value":{"type":"value","value":"Use the switch / case statement inside your the node editor."}},"nnSvJy8dqXMf6gAuJwBkZ":{"tag":"li","type":"element","children":["6vzWrfo9-_9YFupekc0yz","xT6ZoWYyz7diadbTdLELZ","DDy_L9HAVdgsT-7T4qkx0","AAos7e-UOjEj1mn2hhjT5"],"classes":{"eTdYr":{"formula":{"type":"value","value":true}}},"customProperties":{}},"q8qH2PnCYl2ZXoM_4FEEt":{"tag":"tr","type":"element","children":["d03AeCIYatsx8d_ub5xfq","YgUcIobBk1HQdVVLrJbUH"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qUZX5B_obx9JdrREoZr8I":{"tag":"main","type":"element","children":["hVG2Qu2I9ihxg1FaW89ym","ZSH8S6BF792yn-5bGF8r1","R4weYJ9mGHC1guX-Amuw_","hdSwkUBI-768Pk3DzQQHL","616n7TVOO6f-PV1o3Ttcf"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qmPcZxSZ4RJRuMuAIIgJl":{"tag":"td","type":"element","children":["SjghcoPIZoOlGIzjhgr8N"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qo1NQlCVxps2hZ6tLZKYS":{"tag":"div","type":"element","children":["BHM1o9B2lswQOz9dXRwoQ"],"classes":{"eYYyhs":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rPritJtWLr5om5Mf7ZQl4":{"tag":"h2","type":"element","value":{"type":"value","value":"Use Case: Single case"},"children":["Vqxf_8CW-icGEeuw3haqS"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ribjx2gqfYLc6_vtFNun6":{"tag":"tr","type":"element","children":["WLGkRFnxQip7JO_31ps6Z","2YB1BPkzGHlWDsraEOC_O"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sl6pP6HgKb1BFc9paGEF4":{"id":"sl6pP6HgKb1BFc9paGEF4","type":"text","value":{"name":"switchStatement","type":"function","arguments":[{"name":"switchInput","formula":{"path":["Variables","animal"],"type":"path"}},{"name":"cases","type":{"type":"List"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"elephant"}},{"Name":0,"name":"result","formula":{"type":"value","value":"herbivore"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"value","value":"tiger"}},{"Name":0,"name":"result","formula":{"type":"value","value":"carnivore"}}]}},{"Name":0,"formula":{"type":"object","arguments":[{"Name":0,"name":"case","formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"bear"}},{"Name":0,"formula":{"type":"value","value":"pig"}}]}},{"Name":0,"name":"result","formula":{"type":"value","value":"omnivore"}}]}}]}},{"name":"defaultValue","formula":{"type":"value","value":"animal not found"}}]}},"tYkY8mQq7i2CQ5mYiNLip":{"tag":"div","type":"element","children":["A1QNARQyLmHRc94PnElmy"],"customProperties":{}},"tujus7mkBz3lFusFnajXj":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["nnSvJy8dqXMf6gAuJwBkZ"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"u0P1mFr478WFepV8XEnAK":{"tag":"h4","type":"element","children":["AJFX78Oz7f85ndH2UzMrR"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"u8NApFn1J1V0yfOUdO-Cf":{"type":"text","value":{"type":"value","value":"Equivalent to the case - return of the traditional switch statement. "}},"uhkdG54Xmn8ReHAiHtXza":{"type":"text","value":{"type":"value","value":"There's currently no native switch / case statement in toddle. So if you wanted to use a switch statement inside the node editor you had to create a custom formula. \n\nUsing this package, you can add the switch / case node straight into your editor and visually set up a switch statement."}},"unB9UK8hQ3mwyUHDWjreA":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"text"},"value":{"path":["Variables","month"],"type":"path"},"autofocus":{"type":"value","value":false},"placeholder":{"type":"value","value":"month"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"month"}],"trigger":"input"}},"classes":{"gCrgZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"v1IIjCOcFOHI7FA5Vqus9":{"tag":"span","type":"element","children":["T3xNZeaEOute4FnnW_qjr"],"classes":{"HVAcz":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vOHOzUCK4-00R1sigQxCq":{"tag":"table","type":"element","children":["ribjx2gqfYLc6_vtFNun6","BfDxpiNh7cK1VLjoWkclZ","q8qH2PnCYl2ZXoM_4FEEt"],"classes":{"fmmYYL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xRIudTCfKkrrO-NIi5S1e":{"tag":"span","type":"element","children":["sl6pP6HgKb1BFc9paGEF4"],"classes":{"EXSxf":{"formula":{"type":"value","value":true}}},"customProperties":{}},"xT6ZoWYyz7diadbTdLELZ":{"tag":"h3","type":"element","children":["W2clF93PjQZjr26efW6UQ"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"route":{"path":[],"query":{}},"onLoad":{"actions":[{"data":{"type":"value","value":"1"},"type":"SetVariable","variable":"month"}],"trigger":"load"},"functions":{},"variables":{"month":{"initialValue":{"type":"value","value":1}},"animal":{"initialValue":{"type":"value","value":"tiger"}}}},"components":[]}